package org.dreamwork.jasmine2.web.client;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 12-4-25
 * Time: 下午4:16
 */
public class OperationSystem {
    private OSType type;
    private Architecture architecture;
    private Version version;

    public static final OperationSystem UNKNOWN =
            new OperationSystem (OSType.Unknown, Architecture.Unknown, Version.UNKNOWN);

    public OperationSystem () {}

    private OperationSystem (OSType type, Architecture architecture, Version version) {
        this.type = type;
        this.architecture = architecture;
        this.version = version;
    }

    public OSType getType () {
        return type;
    }

    public void setType (OSType type) {
        this.type = type;
    }

    public Architecture getArchitecture () {
        return architecture;
    }

    public void setArchitecture (Architecture architecture) {
        this.architecture = architecture;
    }

    public Version getVersion () {
        return version;
    }

    public void setVersion (Version version) {
        this.version = version;
    }

    @Override
    public String toString () {
        return type + " " + architecture + " " + version;
    }
}